package com.itheima.string;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        String s=sc.nextLine();

        int bigCount = 0;
        int smallCount = 0;
        int numCount = 0;

        char[] c=s.toCharArray();

        for (int i = 0; i < c.length; i++) {
            char ac= c[i];
            if (ac>='A'&&ac<='Z'){
                bigCount++;
            }else if (ac>='a'&&ac<='z'){
                smallCount++;
            }else if (ac>='0'&&ac<='9'){
                numCount++;
            }else{
                System.out.println("您输入的数据有误");
            }
        }
        System.out.println("大写字母"+bigCount+"个");
        System.out.println("小写字母"+smallCount+"个");
        System.out.println("数字"+numCount+"个");
    }
}
